#---- Primary replication script ----

# Stuart J. Turnbull-Dugarte (2025)
# "Liberal in the sheets [...]"
# Accepted at European Journal of Political Research
# README: This single script will reproduce all analysis and output from the main text and supplementary appendix file,
# and produces four .html files of the log output from each.

remove(list=ls())

library(knitr)
library(sessioninfo)  

rmarkdown::render("script1_studyI.R")
rmarkdown::render("script2_studyII.R")
rmarkdown::render("script3_studyIII.R")
rmarkdown::render("script4_misc.R")


writeLines(c(
  "---- Session Info: Turnbull-Dugarte (2025) ----",
  capture.output(sessioninfo::session_info())
), "session_log.txt")
